Fastest Way To Get Inverse Function